/**
 *
 *  Copyright (c) 2006, Reliable Source, Inc. 
 *  All Rights Reserved
 *
 */
package org.reliablesource.prism.ui.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;
import org.reliablesource.prism.ui.plugin.PrismPlugin;
import org.reliablesource.prism.ui.util.PrismUIConstants;

/**
 *	Created on: Mar 11, 2006<br><br>
 *
 *	@author Dennis Park 
 *		<a href="mailto:dennis.park@gmail.com">dennis.park@gmail.com</a>
 *
 * Class used to initialize default preference values.
 *
 *	@since 1.0
 */
public class PreferenceInitializer extends AbstractPreferenceInitializer {
	
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
	 */
	public void initializeDefaultPreferences() {
		IPreferenceStore store = PrismPlugin.getDefault()
				.getPreferenceStore();
		store.setDefault(PrismUIConstants.P_CAPTURE_TRIGGER, Integer.toString(PrismUIConstants.MOUSE_MIDDLE));
		
		String location = PrismPlugin.getDefault().getSavePath();
		store.setDefault(PrismUIConstants.P_PATH , location);

	}

}
